@layout("/common/_container.html",{js:["/assets/tool/toolWork/toolWork_add.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">添加</span>
</div>

<div class="layui-fluid " style="">
    <div class="layui-card">
        <div class="layui-card-body">
               		<div class="layui-tab layui-tab-brief" lay-filter="doTabBrief">
               			<ul class="layui-tab-title">
               				<li class="layui-this">1生成波次</li>
               				<li>2派工管理</li>
               				<li>明细查询</li>
               			</ul>
               			<div class="layui-tab-content">
               				<div class="layui-tab-item layui-show">
					            <form id="toolWorkForm" lay-filter="toolWorkForm" class="layui-form layui-form-pane" style="margin: 10px auto;">
		               				<div class="layui-row layui-col-space5">
									  <div class="layui-col-md6">
									    <div class="layui-row grid-demo">
							                <fieldset class="layui-elem-field layui-field-title" style="margin-top: 1px;">
										    	<legend>录入波次信息</legend>
										  	</fieldset>
							                <div class="layui-form-item">
							                    <label class="layui-form-label" style="font-weight: 600;">选择客户<span style="color: red;">*</span></label>
							                    <div class="layui-input-block">
							                        <select id="customerId" name="customerId" lay-filter="customerId" lay-verify="required" required>
							                            @for(item in customerlist!){
							                            <option value="${item.id}">${item.customerName}</option>
							                            @}
							                        </select>
							                    </div>
							                </div>
							                
							                  <div class="layui-form-item">
											    <div class="layui-inline">
											      <label class="layui-form-label" style="font-weight: 600;">波次<span style="color: red;">*</span></label>
											      <div class="layui-input-inline" style="width: 200px;">
							                            <input id="wellen" name="wellen" placeholder="请输入波次" type="number" class="layui-input" lay-verify="required" required/>
											      </div>
											      <div class="layui-form-mid">    </div>
							                      <label class="layui-form-label">交接次数</label>
											      <div class="layui-input-inline" style="width: 200px;">
							                            <input id="handover" name="handover" placeholder="请选择交接次数" type="number" class="layui-input" lay-verify="" required/>
											      </div>
											    </div>
											  </div>
							                
							                <div class="layui-form-item layui-form-text">
							                    <label class="layui-form-label" style="font-weight: 600;">快递单号<span style="color: red;">*</span></label>
							                    <div class="layui-input-block">
											        <textarea placeholder="请输入快递单号" class="layui-textarea" name="orderNumber" id="orderNumber"></textarea>
							                    </div>
							                </div>
							                <div class="layui-form-item">
							                    <div class="layui-input-block">
							                        <button class="layui-btn" lay-filter="btnSubmitWellen" lay-submit>&emsp;保存波次&emsp;</button>
					                        		<button class="layui-btn layui-btn-primary" type="button" id="backupPage">&emsp;<i class="layui-icon">&#xe65c;</i>返回&emsp;</button>
							                    </div>
							                </div>
									    </div>
									  </div>
									  <div class="layui-col-md5 layui-col-md-offset1">
									    <div class="layui-row grid-demo grid-demo-bg1">
							                <fieldset class="layui-elem-field layui-field-title" style="margin-top: 1px;">
										    	<legend>选择作业小组</legend>
										  	</fieldset>
							                <div class="layui-form-item" pane>
							                    <label class="layui-form-label" style="font-weight: 600;">小组编号<span style="color: red;">*</span></label>
							                    <div class="layui-input-block">
						                            @for(item in positionlist!){
							                        <input type="radio" name="arrangeNumber" value="${item.positionNumber}" title="${item.positionNumber}" checked="checked">
						                            @}
							                    </div>
							                </div>
							                <div class="layui-form-item">
							                    <label class="layui-form-label" style="font-weight: 600;">小组人员<span style="color: red;">*</span></label>
							                    <div class="layui-input-block">
							                        <input id="userName" name="userName" placeholder="请输入人员（中文，号隔开）" type="text" class="layui-input" lay-verify="" required/>
							                        <button class="layui-btn layui-btn-primary" type="button" id="selectArrange"><i class="layui-icon">&#xe615;</i>选择小组&emsp;</button>
							                    </div>
							                </div>
							                <div class="layui-form-item" pane="">
							                    <label class="layui-form-label" style="font-weight: 600;">生成补货任务<span style="color: red;">*</span></label>
							                    <div class="layui-input-block">
							                        <input type="radio" name="addTask" value="是" title="是" checked="checked">
							                        <input type="radio" name="addTask" value="否" title="否">
							                    </div>
							                </div>
							                <div class="layui-form-item" pane="">
							                    <label class="layui-form-label">是否直贴</label>
							                    <div class="layui-input-block">
							                        <input type="radio" name="direct" value="直贴" title="是">
							                        <input type="radio" name="direct" value="" title="否" checked="checked">
							                    </div>
							                </div>
							                <div class="layui-form-item">
							                    <label class="layui-form-label">选择包材</label>
							                    <div class="layui-input-block">
							                        <select id="packNumber" name="packNumber" lay-filter="packNumber" lay-verify="" required>
							                            <option value="">请选择</option>
							                            @for(item in pilist!){
							                            <option value="${item.packNumber}">${item.packNumber}，${item.weight}Kg</option>
							                            @}
							                        </select>
							                    </div>
							                </div>
							                <div class="layui-form-item">
							                    <div class="layui-input-block">
							                        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;保存波次并派工&emsp;</button>
					                        		<button class="layui-btn layui-btn-primary" type="button" id="backupPage1">&emsp;<i class="layui-icon">&#xe65c;</i>返回&emsp;</button>
							                    </div>
							                </div>
									    </div>
									  </div>
									</div>
					            </form>
							</div>
               				<div class="layui-tab-item">
			                    <div class="layui-form toolbar">
			                        <div class="layui-form-item">
					                    <div class="layui-inline">
											<select id="customerId2">
								            	<option value="">选择客户</option>
									            @for(item in customerlist!){
									            <option value="${item.id}">${item.customerName}</option>
									            @}
								        	</select>
					                    </div>
							            <div class="layui-inline">
							                <input id="wellen2" class="layui-input" type="text" placeholder="波次"/>
							            </div>
							            <div class="layui-inline">
							                <input id="arrangeNumber2" class="layui-input" type="text" placeholder="小组编号"/>
							            </div>
					                    <div class="layui-inline">
			                				<button id="btnSearch2" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
			                				<button id="btnPaigong2" class="layui-btn layui-btn-normal icon-btn"><i class="layui-icon">&#xe716;</i>批量派工</button>
					                        <button class="layui-btn layui-btn-primary" type="button" id="backupPage2"><i class="layui-icon">&#xe65c;</i>返回</button>
					                    </div>
					                </div>
					            </div>
			                    <table class="layui-table" id="toolWorkTable2" lay-filter="toolWorkTable2"></table>
							</div>
               				<div class="layui-tab-item">
			                    <div class="layui-form toolbar">
			                        <div class="layui-form-item">
					                    <div class="layui-inline">
					                        <select id="v23">
					                            <option value="">全部</option>
					                            <option value="停发">停发</option>
					                            <option value="待配">待配</option>
					                            <option value="已配">已配</option>
					                        </select>
					                    </div>
					                    <div class="layui-inline">
											<select id="customerId3">
								            	<option value="">选择客户</option>
									            @for(item in customerlist!){
									            <option value="${item.id}">${item.customerName}</option>
									            @}
								        	</select>
					                    </div>
							            <div class="layui-inline">
							                <input id="wellen3" class="layui-input" type="text" placeholder="波次"/>
							            </div>
							            <div class="layui-inline">
							                <input id="v13" class="layui-input" type="text" placeholder="出库单号"/>
							            </div>
							            <div class="layui-inline">
							                <input id="condition3" class="layui-input" type="text" placeholder="快递单号"/>
							            </div>
							            <div class="layui-inline">
							                <input id="goodsNumber3" class="layui-input" type="text" placeholder="商品组合"/>
							            </div>
					                    <div class="layui-inline">
			                				<button id="btnSearch3" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
			                				<button id="copyOrder3" class="layui-btn layui-btn-normal icon-btn"><i class="layui-icon">&#xe621;</i>批量复制单号</button>
							                <button id="btnExp3" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>导出</button>
					                        <button class="layui-btn layui-btn-primary" type="button" id="backupPage3"><i class="layui-icon">&#xe65c;</i>返回</button>
					                    </div>
					                </div>
					            </div>
			                    <table class="layui-table" id="toolExpressTable3" lay-filter="toolExpressTable3"></table>
							</div>
               			</div>
               		</div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar2">
    <a class="layui-btn layui-btn-normal layui-btn-xs" style="font-size: 7px;" lay-event="paigong2" id="Paigong2"><i class="layui-icon">&#xe716;</i>派工</a>
    <a class="layui-btn layui-btn-normal layui-btn-xs" style="font-size: 7px;" lay-event="mingxi2" id="mingxi2"><i class="layui-icon">&#xe615;</i>单号</a>
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit2">修改</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete2">删除</a>
</script>

<script type="text/html" id="billstateTpl">
  {{#  if(d.state === '已完成'){ }}
    <span style="color: #43CF7C;font-weight: 600;">{{ d.state }}</span>
  {{#  } else { }}
    {{ d.state }}
  {{#  } }}
</script>
@}